/************************************************************************/
/*																		*/
/*		School Hangover Project											*/
/*																		*/
/*		IMAC 2010														*/
/*		Author : 	Helena Duchaussoy									*/
/*					Isabelle Gouwy										*/
/*					Nathalie Kuoch										*/
/*					Franck Letellier									*/
/*					Louise Pequignot									*/
/*																		*/
/*		E-mail: flo-in-underware@googlegroups.com						*/
/*																		*/
/************************************************************************/

#ifndef __OBJECTMANAGER_H__
#define __OBJECTMANAGER_H__

#include <cstdlib>
#include <vector>
#include <string>
#include <osg/Group>
#include <osg/Geode>

#include "Singleton.h"

class Cloth;

class ObjectManager: public Singleton<ObjectManager> {

friend class Singleton<ObjectManager>;

protected:
	ObjectManager();
	virtual ~ObjectManager(){clear();}

public:
	void init();

	///brief clear the whole Engine
	void clear();

	void addCloth(Cloth* cloth);
	void removeCloth(int clothID);

	void unlockCloth(int clothID);

private: 
	std::vector<Cloth*> m_vclothes;

};

#endif //__STAGEMANAGER_H__
